/* 赛博朋克风格全局样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* 赛博朋克配色 */
  --cyber-bg: #0a0e27;
  --cyber-bg-secondary: #151a35;
  --cyber-primary: #00ff9f;
  --cyber-secondary: #00d4ff;
  --cyber-accent: #ff006e;
  --cyber-warning: #ffbe0b;
  --cyber-border: #00ff9f;
  --cyber-text: #e0e0e0;
  --cyber-text-dim: #8892b0;
  --cyber-shadow: 0 0 20px rgba(0, 255, 159, 0.5);
  --cyber-glow: 0 0 10px rgba(0, 255, 159, 0.8);
}

body {
  margin: 0;
  font-family: 'Courier New', monospace, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen';
  background: var(--cyber-bg);
  color: var(--cyber-text);
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a0e27 0%, #151a35 100%);
}

/* 赛博朋克发光效果 */
.cyber-glow {
  text-shadow: 0 0 10px var(--cyber-primary), 0 0 20px var(--cyber-primary);
}

.cyber-border {
  border: 2px solid var(--cyber-primary);
  box-shadow: 0 0 10px rgba(0, 255, 159, 0.5), inset 0 0 10px rgba(0, 255, 159, 0.2);
}

/* 滚动条样式 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--cyber-bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--cyber-primary);
  border-radius: 4px;
  box-shadow: var(--cyber-glow);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--cyber-secondary);
}

/* Element Plus 主题覆盖 */
.el-menu {
  background-color: var(--cyber-bg-secondary) !important;
  border-right: 2px solid var(--cyber-primary) !important;
}

.el-menu-item,
.el-sub-menu__title {
  color: var(--cyber-text) !important;
  transition: all 0.3s;
}

.el-menu-item:hover,
.el-sub-menu__title:hover {
  background-color: rgba(0, 255, 159, 0.1) !important;
  color: var(--cyber-primary) !important;
  text-shadow: var(--cyber-glow);
}

.el-menu-item.is-active {
  background-color: rgba(0, 255, 159, 0.2) !important;
  color: var(--cyber-primary) !important;
  border-left: 4px solid var(--cyber-primary);
  text-shadow: var(--cyber-glow);
}

.el-header {
  background: linear-gradient(90deg, var(--cyber-bg-secondary) 0%, #1a2040 100%);
  border-bottom: 2px solid var(--cyber-primary);
  box-shadow: 0 4px 20px rgba(0, 255, 159, 0.3);
}

.el-main {
  background: var(--cyber-bg);
  padding: 20px;
}

.el-card {
  background: var(--cyber-bg-secondary) !important;
  border: 2px solid var(--cyber-primary) !important;
  box-shadow: var(--cyber-shadow) !important;
  transition: all 0.3s;
}

.el-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 30px rgba(0, 255, 159, 0.8) !important;
}

.el-button--primary {
  background: linear-gradient(135deg, var(--cyber-primary) 0%, var(--cyber-secondary) 100%) !important;
  border: none !important;
  box-shadow: var(--cyber-glow) !important;
  color: var(--cyber-bg) !important;
  font-weight: bold;
}

.el-button--primary:hover {
  box-shadow: 0 0 20px rgba(0, 255, 159, 1) !important;
}

.el-button--danger {
  background: linear-gradient(135deg, #ff006e 0%, #ff4d6d 100%) !important;
  border: none !important;
  box-shadow: 0 0 10px rgba(255, 0, 110, 0.8) !important;
}

.el-table {
  background: var(--cyber-bg-secondary) !important;
  color: var(--cyber-text) !important;
}

.el-table th {
  background: var(--cyber-bg) !important;
  color: var(--cyber-primary) !important;
  text-shadow: var(--cyber-glow);
  border-bottom: 2px solid var(--cyber-primary) !important;
}

.el-table tr {
  background: var(--cyber-bg-secondary) !important;
}

.el-table tr:hover {
  background: rgba(0, 255, 159, 0.1) !important;
}

.el-table tr:hover > td {
  color: var(--cyber-text) !important;
}

.el-table td {
  border-bottom: 1px solid rgba(0, 255, 159, 0.2) !important;
  color: var(--cyber-text) !important;
}

.el-table__body tr:hover > td {
  background: rgba(0, 255, 159, 0.15) !important;
}

.el-input__wrapper {
  background: var(--cyber-bg) !important;
  box-shadow: 0 0 5px rgba(0, 255, 159, 0.3) !important;
  border: 1px solid var(--cyber-primary) !important;
}

.el-input__inner {
  color: var(--cyber-text) !important;
}

.el-select-dropdown {
  background: var(--cyber-bg-secondary) !important;
  border: 2px solid var(--cyber-primary) !important;
}

.el-select-dropdown__item {
  color: var(--cyber-text) !important;
}

.el-select-dropdown__item:hover {
  background: rgba(0, 255, 159, 0.2) !important;
}

.el-dialog {
  background: var(--cyber-bg-secondary) !important;
  border: 2px solid var(--cyber-primary) !important;
  box-shadow: var(--cyber-shadow) !important;
}

.el-dialog__header {
  border-bottom: 2px solid var(--cyber-primary);
}

.el-dialog__title {
  color: var(--cyber-primary) !important;
  text-shadow: var(--cyber-glow);
  font-weight: bold;
}

/* 数据统计卡片 */
.stat-card {
  background: linear-gradient(135deg, var(--cyber-bg-secondary) 0%, #1a2040 100%);
  border: 2px solid var(--cyber-primary);
  border-radius: 8px;
  padding: 20px;
  box-shadow: var(--cyber-shadow);
  transition: all 0.3s;
}

.stat-card:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow: 0 0 40px rgba(0, 255, 159, 0.8);
}

.stat-number {
  font-size: 36px;
  font-weight: bold;
  color: var(--cyber-primary);
  text-shadow: var(--cyber-glow);
  font-family: 'Courier New', monospace;
}

/* 动画效果 */
@keyframes neon-pulse {
  0%, 100% {
    text-shadow: 0 0 10px var(--cyber-primary), 0 0 20px var(--cyber-primary);
  }
  50% {
    text-shadow: 0 0 20px var(--cyber-primary), 0 0 40px var(--cyber-primary);
  }
}

.neon-text {
  animation: neon-pulse 2s ease-in-out infinite;
}

/* 网格背景 */
.cyber-grid {
  background-image: 
    linear-gradient(rgba(0, 255, 159, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 159, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
}
